/**
 * TrainingCenter.java
 * Version: 1.0
 * Created in 06/08/2013
 * Created by: Gerson Groth
 * 
 * Copyright
 */
package activities.base.tcx;

import java.util.ArrayList;

/**
 * The Class TrainingCenter.
 * 
 * @author Gerson Groth
 */
public class TrainingCenter {

	/** The activities. */
	private ArrayList<Activity> activities = new ArrayList<Activity>();

	/** The author. */
	private Author author;

	/**
	 * Gets the activities.
	 * 
	 * @return the activities
	 */
	public ArrayList<Activity> getActivities() {
		return activities;
	}

	/**
	 * Adds the activities.
	 * 
	 * @param activities
	 *            the activities
	 */
	public void addActivities(ArrayList<Activity> activities) {
		this.activities.addAll(activities);
	}

	/**
	 * Adds the activity.
	 * 
	 * @param activity
	 *            the activity
	 */
	public void addActivity(Activity activity) {
		this.activities.add(activity);
	}

	/**
	 * Gets the author.
	 * 
	 * @return the author
	 */
	public Author getAuthor() {
		return author;
	}

	/**
	 * Sets the author.
	 * 
	 * @param author
	 *            the new author
	 */
	public void setAuthor(Author author) {
		this.author = author;
	}

}
